package com.wt.admin.code.language;

import com.aizuda.easy.security.exp.IErrorCode;

public enum Classification2000 implements IErrorCode {
    CODE_2000(2000, "分类名称不能为空"),
    CODE_2001(2001, "id不能为空"),
    CODE_2002(2002, "id不能为空"),
    CODE_2003(2003, "不能添加重复分类"),
    CODE_2004(2004, "添加的数据不存在"),
    ;


    private Integer code;
    private String msg;

    Classification2000(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
